<?php
namespace app\admin\validate;
use think\Validate;
class Goods extends Validate{
    protected $rule = [
        'goods_name'  =>  'require',
        'goods_cate' =>  'require',
        'goods_original_price' => 'require',
        'goods_price' => 'require',
        'goods_thumb'   => 'require',
        'goods_desc'   => 'require',
        'goods_detail'  =>'require',
    ];
    protected $message = [
        'goods_name.require'  =>  GOODS_NAME_EMPTY,
        'goods_cate.require' =>  GOODS_CATE_EMPTY,
        'goods_original_price.require' =>GOODS_ORIGINAL_PRICE_EMPTY,
        'goods_price.require' =>GOODS_PRICE_EMPTY,
        'goods_thumb.require' =>GOODS_THUMB_EMPTY,
        'goods_desc.require' =>GOODS_DESC_EMPTY,
        'goods_detail'       =>GOODS_DETAIL_EMPTY,
    ];
}